import {Component, Input, OnInit} from '@angular/core';

@Component({
  selector: 'app-table-nav',
  templateUrl: './table-nav.component.html',
  styleUrls: ['./table-nav.component.css']
})
export class TableNavComponent implements OnInit {

  showState = false;
  @Input() navName;
  constructor() { }

  ngOnInit() {
    $('app-change-table, app-combine-table, app-reserve-submit, app-reserve-list').click(()=>{
      this.showState = false;
    })
  }

  changState(e) {
    e.preventDefault();
    e.stopPropagation();
    this.showState = !this.showState;
  }

}
